﻿using AutoMapper;
using CNav.Domain;
using CNav.Model;

namespace CNav.DataApi
{
    internal class AutoMapping
    {
       public static void Initialise()
       {
           Map<UserProfileModel, UserProfile>();
       }

       private static void Map<TIn, TOut>()
       {
           Mapper.CreateMap<TIn, TOut>();
           Mapper.CreateMap<TOut, TIn>();
       }
    }
}
